<include file="public:header"/>
<link href="__TMPL__public/css/index.css" rel="stylesheet" type="text/css"/>
<div class="wrapper clearfix">
	<div id="body" class="fm960">
    <div class="content">
		<include file="public:banner" />
        <s class="guide-expand" id="J_GuideExpand"></s>
            <p class="new fb wrap">
                <span class="today">
                    今日新上
                </span>
                <span class="nowdate">
                    <em>
                        <?php echo $showtime=date("Y");?> 
                    </em>
                    <em>
                        <?php echo $showtime=date("m");?> 
                    </em>
                    <em>
                        <?php echo $showtime=date("d");?> 
                    </em>
                </span>
		</p>
        <include file="public:todayhot"/>
        
        <if condition="$index_album[index_album] eq '1'">
        <volist name="index_group_cates" id='val'>
		<div class="category clearfix">
            <div class="mt20 clearfix catename">
            <span class="more_red_btn tc cursor fr"><a target="_blank" href="{:u('cate/index',array('cid'=>$val['id']))}" class="white">更多<samp>&gt;&gt;</samp></a></span>
            <h2 class="fl"><span style="font-size:12px;">爱美丽们分享的</span> <a target="_blank" href="{:u('cate/index',array('cid'=>$val['id']))}"><span class="red f16">{$val.name}</span></a></h2>
            <ul class="guide_links fl">
            	<volist name="val['s']" id='sval'>
            	<li><a target="_blank" href="{:u('cate/index',array('cid'=>$sval['id']))}" class="red subcatename">{$sval.name}11</a></li>
                </volist>
            </ul>
        </div>
            <volist name="val['g']" id='gval' key="key">
            <div class="nineGrid box-shadow mt15 <if condition="$key%4 eq 1">alpha<elseif condition="$key%4 eq 0" />lastNineGrid</if>">
                <div class="hd">
                    <h4><a href="{:u('cate/index',array('cid'=>$gval['id']))}" title="{$gval.name}" target="_blank">{$gval.name}</a></h4>
                </div>
                <div class="bd clearfix">
                	<a target="_blank" href="{:u('cate/index',array('cid'=>$gval['id']))}" class="block cate_db_bg">
                	<volist name="gval['items']" id='gi' key="gikey">
					<img <if condition="$gikey%3 eq 0">style="margin-right: 0;"</if> url="{:base64_encode($gi['simg'])}" class="cate_pic_s encode_url">
                    </volist>
					</a>
                </div>
                <div class="ft clearfix">
                    <span class="fl">
                        {$gval.item_nums}件推荐的宝贝
                    </span>
                    <span class="follow_red_btn tc cursor fr">
                        <a href="{:u('cate/index',array('cid'=>$gval['id']))}" target="_blank" class="white">去逛逛&gt;</a>
                    </span>
                </div>
            </div>
            </volist>
            </volist>
			</if>
        </div>
        <!-- 九宫格结束　-->    
    </div>	
    	
    <if condition="$index_pins[index_pins] eq '1'">
    <!-- start -->
    <div>
    	<div class="mt20 clearfix">
        	<span class="fr"><a target="_blank" class="gray" href="?m=search">更多<samp>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;</samp></a></span>
            <h2 class="fl"><span style="font-size:12px;"></span> <span class="red f16">每日精彩推荐</span></h2>
        </div>
    </div>
    <div class="item_list infinite_scroll" style="min-height:600px;">
    	<include file="public:goods_list"/>
    </div>
    <if condition="$show_sp eq 1">
        <div id="more" class="center">
            <a href="{:u('index/index',array('sp'=>2,'p'=>$p))}" hidefocus="true"></a>
        </div>    	
   	</if> 
    <if condition="$page neq ''">
    	<div id="page" class="page mt20 clearfix" style="display: none;">
        	<span class="page_num">{$page}</span>
        </div>
    </if>
    <!-- end -->
	</if>
    <include file="public:users" />
    <div class="mt15"><script language="javascript" src="{:u('advert/index', array('id'=>6))}"></script></div>    
	<load href="__ROOT__/statics/js/jquery/plugins/jquery.KinSlideshow-1.2.1.min.js" />
	</div>
</div>
<include file="public:footer"/>